<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LINE 1 &quot;libraries\\base\\GHC\\ConsoleHandler.hsc&quot; #-}</span><span>
</span><span id="line-1"></span><span class="hs-pragma">{-# LANGUAGE Trustworthy #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE NoImplicitPrelude #-}</span><span>
</span><span id="line-3"></span><span class="hs-pragma">{-# LANGUAGE CPP #-}</span><span>
</span><span id="line-4"></span><span>
</span><span id="line-5"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-6"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- Module      :  GHC.ConsoleHandler</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- Copyright   :  (c) The University of Glasgow</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- License     :  see libraries/base/LICENSE</span><span>
</span><span id="line-10"></span><span class="hs-comment">--</span><span>
</span><span id="line-11"></span><span class="hs-comment">-- Maintainer  :  cvs-ghc@haskell.org</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- Stability   :  internal</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- Portability :  non-portable (GHC extensions)</span><span>
</span><span id="line-14"></span><span class="hs-comment">--</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- NB. the contents of this module are only available on Windows.</span><span>
</span><span id="line-16"></span><span class="hs-comment">--</span><span>
</span><span id="line-17"></span><span class="hs-comment">-- Installing Win32 console handlers.</span><span>
</span><span id="line-18"></span><span class="hs-comment">--</span><span>
</span><span id="line-19"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-20"></span><span>
</span><span id="line-21"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.ConsoleHandler</span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="hs-pragma">{-# LINE 27 &quot;libraries\\base\\GHC\\ConsoleHandler.hsc&quot; #-}</span><span>
</span><span id="line-27"></span><span>        </span><span class="hs-special">(</span><span> </span><span class="hs-identifier">Handler</span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-28"></span><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">installHandler</span><span>
</span><span id="line-29"></span><span>        </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">ConsoleEvent</span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-30"></span><span>        </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-31"></span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span class="hs-comment">{-
#include &quot;rts/Signals.h&quot;

Note: this #include is inside a Haskell comment
      but it brings into scope some #defines
      that are used by CPP below (eg STG_SIG_DFL).
      Having it in a comment means that there's no
      danger that C-like crap will be misunderstood
      by GHC
-}</span><span>
</span><span id="line-43"></span><span>
</span><span id="line-44"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">GHC.Base</span><span>
</span><span id="line-45"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Foreign</span><span>
</span><span id="line-46"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Foreign.C</span><span>
</span><span id="line-47"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">GHC.Conc</span><span>
</span><span id="line-48"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Control.Concurrent.MVar</span><span>
</span><span id="line-49"></span><span>
</span><span id="line-50"></span><span class="hs-keyword">data</span><span> </span><span class="hs-identifier">Handler</span><span>
</span><span id="line-51"></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">Default</span><span>
</span><span id="line-52"></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">Ignore</span><span>
</span><span id="line-53"></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">Catch</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">ConsoleEvent</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-54"></span><span>
</span><span id="line-55"></span><span class="hs-comment">-- | Allows Windows console events to be caught and handled.  To</span><span>
</span><span id="line-56"></span><span class="hs-comment">-- handle a console event, call 'installHandler' passing the</span><span>
</span><span id="line-57"></span><span class="hs-comment">-- appropriate 'Handler' value.  When the event is received, if the</span><span>
</span><span id="line-58"></span><span class="hs-comment">-- 'Handler' value is @Catch f@, then a new thread will be spawned by</span><span>
</span><span id="line-59"></span><span class="hs-comment">-- the system to execute @f e@, where @e@ is the 'ConsoleEvent' that</span><span>
</span><span id="line-60"></span><span class="hs-comment">-- was received.</span><span>
</span><span id="line-61"></span><span class="hs-comment">--</span><span>
</span><span id="line-62"></span><span class="hs-comment">-- Note that console events can only be received by an application</span><span>
</span><span id="line-63"></span><span class="hs-comment">-- running in a Windows console.  Certain environments that look like consoles</span><span>
</span><span id="line-64"></span><span class="hs-comment">-- do not support console events, these include:</span><span>
</span><span id="line-65"></span><span class="hs-comment">--</span><span>
</span><span id="line-66"></span><span class="hs-comment">--  * Cygwin shells with @CYGWIN=tty@ set (if you don't set @CYGWIN=tty@,</span><span>
</span><span id="line-67"></span><span class="hs-comment">--    then a Cygwin shell behaves like a Windows console).</span><span>
</span><span id="line-68"></span><span class="hs-comment">--  * Cygwin xterm and rxvt windows</span><span>
</span><span id="line-69"></span><span class="hs-comment">--  * MSYS rxvt windows</span><span>
</span><span id="line-70"></span><span class="hs-comment">--</span><span>
</span><span id="line-71"></span><span class="hs-comment">-- In order for your application to receive console events, avoid running</span><span>
</span><span id="line-72"></span><span class="hs-comment">-- it in one of these environments.</span><span>
</span><span id="line-73"></span><span class="hs-comment">--</span><span>
</span><span id="line-74"></span><span class="hs-identifier">installHandler</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Handler</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">Handler</span><span>
</span><span id="line-75"></span><span class="hs-identifier">installHandler</span><span> </span><span class="hs-identifier">handler</span><span>
</span><span id="line-76"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">threaded</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-77"></span><span>    </span><span class="hs-identifier">modifyMVar</span><span> </span><span class="hs-identifier">win32ConsoleHandler</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-identifier">old_h</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-78"></span><span>      </span><span class="hs-special">(</span><span class="hs-identifier">new_h</span><span class="hs-special">,</span><span class="hs-identifier">rc</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span>
</span><span id="line-79"></span><span>        </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">handler</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-80"></span><span>          </span><span class="hs-identifier">Default</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-81"></span><span>            </span><span class="hs-identifier">r</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">rts_installHandler</span><span> </span><span class="hs-identifier">STG_SIG_DFL</span><span> </span><span class="hs-identifier">nullPtr</span><span>
</span><span id="line-82"></span><span>            </span><span class="hs-identifier">return</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">no_handler</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">r</span><span class="hs-special">)</span><span>
</span><span id="line-83"></span><span>          </span><span class="hs-identifier">Ignore</span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-84"></span><span>            </span><span class="hs-identifier">r</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">rts_installHandler</span><span> </span><span class="hs-identifier">STG_SIG_IGN</span><span> </span><span class="hs-identifier">nullPtr</span><span>
</span><span id="line-85"></span><span>            </span><span class="hs-identifier">return</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">no_handler</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">r</span><span class="hs-special">)</span><span>
</span><span id="line-86"></span><span>          </span><span class="hs-identifier">Catch</span><span> </span><span class="hs-identifier">h</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-87"></span><span>            </span><span class="hs-identifier">r</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">rts_installHandler</span><span> </span><span class="hs-identifier">STG_SIG_HAN</span><span> </span><span class="hs-identifier">nullPtr</span><span>
</span><span id="line-88"></span><span>            </span><span class="hs-identifier">return</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">h</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">r</span><span class="hs-special">)</span><span>
</span><span id="line-89"></span><span>      </span><span class="hs-identifier">prev_handler</span><span> </span><span class="hs-glyph">&lt;-</span><span>
</span><span id="line-90"></span><span>        </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">rc</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-91"></span><span>          </span><span class="hs-identifier">STG_SIG_DFL</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">return</span><span> </span><span class="hs-identifier">Default</span><span>
</span><span id="line-92"></span><span>          </span><span class="hs-identifier">STG_SIG_IGN</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">return</span><span> </span><span class="hs-identifier">Ignore</span><span>
</span><span id="line-93"></span><span>          </span><span class="hs-identifier">STG_SIG_HAN</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">return</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">Catch</span><span> </span><span class="hs-identifier">old_h</span><span class="hs-special">)</span><span>
</span><span id="line-94"></span><span>          </span><span class="hs-identifier">_</span><span>           </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">errorWithoutStackTrace</span><span> </span><span class="hs-string">&quot;installHandler: Bad threaded rc value&quot;</span><span>
</span><span id="line-95"></span><span>      </span><span class="hs-identifier">return</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">new_h</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">prev_handler</span><span class="hs-special">)</span><span>
</span><span id="line-96"></span><span>
</span><span id="line-97"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-98"></span><span>  </span><span class="hs-identifier">alloca</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-glyph">\</span><span> </span><span class="hs-identifier">p_sp</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-99"></span><span>   </span><span class="hs-identifier">rc</span><span> </span><span class="hs-glyph">&lt;-</span><span>
</span><span id="line-100"></span><span>    </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">handler</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-101"></span><span>     </span><span class="hs-identifier">Default</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">rts_installHandler</span><span> </span><span class="hs-identifier">STG_SIG_DFL</span><span> </span><span class="hs-identifier">p_sp</span><span>
</span><span id="line-102"></span><span>     </span><span class="hs-identifier">Ignore</span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">rts_installHandler</span><span> </span><span class="hs-identifier">STG_SIG_IGN</span><span> </span><span class="hs-identifier">p_sp</span><span>
</span><span id="line-103"></span><span>     </span><span class="hs-identifier">Catch</span><span> </span><span class="hs-identifier">h</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-104"></span><span>        </span><span class="hs-identifier">v</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">newStablePtr</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">toHandler</span><span> </span><span class="hs-identifier">h</span><span class="hs-special">)</span><span>
</span><span id="line-105"></span><span>        </span><span class="hs-identifier">poke</span><span> </span><span class="hs-identifier">p_sp</span><span> </span><span class="hs-identifier">v</span><span>
</span><span id="line-106"></span><span>        </span><span class="hs-identifier">rts_installHandler</span><span> </span><span class="hs-identifier">STG_SIG_HAN</span><span> </span><span class="hs-identifier">p_sp</span><span>
</span><span id="line-107"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">rc</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-108"></span><span>     </span><span class="hs-identifier">STG_SIG_DFL</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">return</span><span> </span><span class="hs-identifier">Default</span><span>
</span><span id="line-109"></span><span>     </span><span class="hs-identifier">STG_SIG_IGN</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">return</span><span> </span><span class="hs-identifier">Ignore</span><span>
</span><span id="line-110"></span><span>     </span><span class="hs-identifier">STG_SIG_HAN</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-111"></span><span>        </span><span class="hs-identifier">osptr</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">peek</span><span> </span><span class="hs-identifier">p_sp</span><span>
</span><span id="line-112"></span><span>        </span><span class="hs-identifier">oldh</span><span>  </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">deRefStablePtr</span><span> </span><span class="hs-identifier">osptr</span><span>
</span><span id="line-113"></span><span>         </span><span class="hs-comment">-- stable pointer is no longer in use, free it.</span><span>
</span><span id="line-114"></span><span>        </span><span class="hs-identifier">freeStablePtr</span><span> </span><span class="hs-identifier">osptr</span><span>
</span><span id="line-115"></span><span>        </span><span class="hs-identifier">return</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">Catch</span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span> </span><span class="hs-identifier">ev</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">oldh</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">fromConsoleEvent</span><span> </span><span class="hs-identifier">ev</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-116"></span><span>     </span><span class="hs-identifier">_</span><span>           </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">errorWithoutStackTrace</span><span> </span><span class="hs-string">&quot;installHandler: Bad non-threaded rc value&quot;</span><span>
</span><span id="line-117"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-118"></span><span>   </span><span class="hs-identifier">fromConsoleEvent</span><span> </span><span class="hs-identifier">ev</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-119"></span><span>     </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">ev</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-120"></span><span>       </span><span class="hs-identifier">ControlC</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-number">0</span><span>
</span><span id="line-121"></span><span class="hs-pragma">{-# LINE 121 &quot;libraries\\base\\GHC\\ConsoleHandler.hsc&quot; #-}</span><span>
</span><span id="line-121"></span><span>       </span><span class="hs-identifier">Break</span><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-number">1</span><span>
</span><span id="line-122"></span><span class="hs-pragma">{-# LINE 122 &quot;libraries\\base\\GHC\\ConsoleHandler.hsc&quot; #-}</span><span>
</span><span id="line-122"></span><span>       </span><span class="hs-identifier">Close</span><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-number">2</span><span>
</span><span id="line-123"></span><span class="hs-pragma">{-# LINE 123 &quot;libraries\\base\\GHC\\ConsoleHandler.hsc&quot; #-}</span><span>
</span><span id="line-123"></span><span>       </span><span class="hs-identifier">Logoff</span><span>   </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-number">5</span><span>
</span><span id="line-124"></span><span class="hs-pragma">{-# LINE 124 &quot;libraries\\base\\GHC\\ConsoleHandler.hsc&quot; #-}</span><span>
</span><span id="line-124"></span><span>       </span><span class="hs-identifier">Shutdown</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-number">6</span><span>
</span><span id="line-125"></span><span class="hs-pragma">{-# LINE 125 &quot;libraries\\base\\GHC\\ConsoleHandler.hsc&quot; #-}</span><span>
</span><span id="line-125"></span><span>
</span><span id="line-126"></span><span>   </span><span class="hs-identifier">toHandler</span><span> </span><span class="hs-identifier">hdlr</span><span> </span><span class="hs-identifier">ev</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-127"></span><span>      </span><span class="hs-keyword">case</span><span> </span><span class="hs-identifier">toWin32ConsoleEvent</span><span> </span><span class="hs-identifier">ev</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-128"></span><span>         </span><span class="hs-comment">-- see rts/win32/ConsoleHandler.c for comments as to why</span><span>
</span><span id="line-129"></span><span>         </span><span class="hs-comment">-- rts_ConsoleHandlerDone is called here.</span><span>
</span><span id="line-130"></span><span>        </span><span class="hs-identifier">Just</span><span> </span><span class="hs-identifier">x</span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">hdlr</span><span> </span><span class="hs-identifier">x</span><span> </span><span class="hs-operator">&gt;&gt;</span><span> </span><span class="hs-identifier">rts_ConsoleHandlerDone</span><span> </span><span class="hs-identifier">ev</span><span>
</span><span id="line-131"></span><span>        </span><span class="hs-identifier">Nothing</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">return</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- silently ignore..</span><span>
</span><span id="line-132"></span><span>
</span><span id="line-133"></span><span>   </span><span class="hs-identifier">no_handler</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">errorWithoutStackTrace</span><span> </span><span class="hs-string">&quot;win32ConsoleHandler&quot;</span><span>
</span><span id="line-134"></span><span>
</span><span id="line-135"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">ccall</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;rtsSupportsBoundThreads&quot;</span><span> </span><span class="hs-identifier">threaded</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Bool</span><span>
</span><span id="line-136"></span><span>
</span><span id="line-137"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">ccall</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;RtsExternal.h rts_InstallConsoleEvent&quot;</span><span>
</span><span id="line-138"></span><span>  </span><span class="hs-identifier">rts_installHandler</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">CInt</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Ptr</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">StablePtr</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">CInt</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">CInt</span><span>
</span><span id="line-139"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">ccall</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;RtsExternal.h rts_ConsoleHandlerDone&quot;</span><span>
</span><span id="line-140"></span><span>  </span><span class="hs-identifier">rts_ConsoleHandlerDone</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">CInt</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-141"></span><span>
</span><span id="line-142"></span><span>
</span><span id="line-143"></span><span class="hs-pragma">{-# LINE 143 &quot;libraries\\base\\GHC\\ConsoleHandler.hsc&quot; #-}</span><span>
</span><span id="line-143"></span></pre></body></html>